import request from '@/utils/request'

// 查询流程申请审批记录列表
export function listProcessManagementList(query) {
  return request({
    url: '/system/processManagementList/list', method: 'get', params: query
  })
}

// 查询流程申请审批记录详细
export function getProcessManagementList(approveId) {
  return request({
    url: '/system/processManagementList/' + approveId, method: 'get'
  })
}

// 新增流程申请审批记录
export function addProcessManagementList(data) {
  return request({
    url: '/system/processManagementList', method: 'post', data: data
  })
}

// 修改流程申请审批记录
export function updateProcessManagementList(data) {
  return request({
    url: '/system/processManagementList', method: 'put', data: data
  })
}

// 删除流程申请审批记录
export function delProcessManagementList(approveId) {
  return request({
    url: '/system/processManagementList/' + approveId, method: 'delete'
  })
}

// 新增流程申请审批记录
export function auditInfoListForApp(data) {
  return request({
    url: '/app/auditInfoList', method: 'post', data: data
  })
}

// 新增流程申请审批记录
export function auditInfoList(data) {
  return request({
    url: '/system/processManagementList/auditInfoList', method: 'post', data: data
  })
}

export function allAuditInfoList(data) {
  return request({
    url: '/system/processManagementList/allAuditInfoList', method: 'post', data: data
  })
}

export function audit(data) {
  return request({
    url: '/system/processManagementList/audit', method: 'post', data: data
  })
}

export function auditForApp(data) {
  return request({
    url: '/app/audit', method: 'post', data: data
  })
}

